class KindDict{
    dict:any=[
        // {
        //     kindCode: 0,
        //     kindName: "权限管理",
        //     abbr: "permission"
        // },
        // {
        //     kindCode: 1,
        //     kindName: "爬模",
        //     abbr: "creep"
        // },
        {
            kindCode: 2,
            kindName: "强夯",
            abbr: "tamp"
        },
        {
            kindCode: 3,
            kindName: "压实-振碾",
            abbr: "comp"
        },
        {
            kindCode: 4,
            kindName: "压实-冲碾",
            abbr: "comp"
        },
        {
            kindCode: 8,
            kindName: "摊铺",
            abbr:"pave"
        },
        {
            kindCode: 9,
            kindName: "摊铺压实",
            abbr:"pave"
        },
        {
            kindCode: 10,
            kindName: "CFG",
            abbr:"cfg"
        },
        {
            kindCode: 15,
            kindName: "旋挖钻",
            abbr:"rotary"
        },
        {
            kindCode: 22,
            kindName: "水泥搅拌桩",
            abbr: "cement"
        }
    ]

    getNameByCode(code:any){
        let kind = this.dict.find((item:any)=>{
            return item.kindCode == code
        })
        if(kind) return kind.kindName
        return ""
    }
}

export default new KindDict()